Skip to content

don't write colors when pixel is fully transparent so they stay black#1589

Merged
nstlaurent merged 1 commit intodevfrom
png-alpha-fix
Apr 27, 2026
Merged

don't write colors when pixel is fully transparent so they stay black#1589
nstlaurent merged 1 commit intodevfrom
png-alpha-fix

Conversation

@nstlaurent
Copy link
Copy Markdown
Collaborator

@nstlaurent nstlaurent commented Apr 27, 2026

SD21_PNG was rendering incorrectly when paired with bilinear/trilinear texture filtering. This is because the fully transparent pixels in the images were RGB 255,255,255 instead of zero so the colors were being blended and appear even worse with the additive color blending.

@nstlaurent nstlaurent merged commit 0f8d730 into dev Apr 27, 2026
1 check passed
@nstlaurent nstlaurent deleted the png-alpha-fix branch April 27, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant